package com.atguigu.alibaba.controller;

import com.atguigu.alibaba.config.IConfig;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author timiv
 */
@RestController
public class ConfigController {

    @Autowired
    private IConfig config;

    @GetMapping("/nacos/config/info")
    public String getInfo(){
        return config.getInfo();
    }
}
